package com.dearbinge.data.pojo.address;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 省市表DO
 *
 * @author wes
 * @date 2019/2/14
 */
public class Regions implements Serializable {

    /**
     * id
     */
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 区域名称
     */
    @ApiModelProperty("区域名称")
    private String name;

    /**
     * 地区级别
     */
    @ApiModelProperty("地区级别")
    private String type;

    /**
     * 区域编码
     */
    @ApiModelProperty("区域编码")
    private String code;

    /**
     * 层级
     */
    @ApiModelProperty("层级")
    private String pnames;

    /**
     * 上级，0表示顶级
     */
    @ApiModelProperty("上级，0表示顶级")
    private String parentId;

    /**
     * 是否为直辖市（1：是  0：否）
     */
    @ApiModelProperty("是否为直辖市（1：是  0：否）")
    private Boolean isDirectly;

    /**
     * 是否有下级(1:有  0：没有)
     */
    @ApiModelProperty("是否有下级(1:有  0：没有)")
    private Boolean hasChild;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty( "修改时间")
    private Date modifyTime;

    /**
     * 创建人
     */
    @ApiModelProperty( "创建人")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty( "修改人")
    private String modifyBy;

    /**
     * 是否删除（0：否  1：是）
     */
    @ApiModelProperty( "是否删除（0：否  1：是）")
    private Boolean isDeleted;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getPnames() {
        return pnames;
    }

    public void setPnames(String pnames) {
        this.pnames = pnames == null ? null : pnames.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public Boolean getIsDirectly() {
        return isDirectly;
    }

    public void setIsDirectly(Boolean isDirectly) {
        this.isDirectly = isDirectly;
    }

    public Boolean getHasChild() {
        return hasChild;
    }

    public void setHasChild(Boolean hasChild) {
        this.hasChild = hasChild;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy == null ? null : modifyBy.trim();
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }
}